package com.jic.product.mapper;

import com.jic.product.entity.BrandManagement;
import com.jic.product.manage.request.BrandManagementRequest;
import com.jic.product.manage.response.BrandManagementResponse;
import com.jic.product.manage.response.ProductBrandResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品品牌资质管理
 * @author :
 * @email :
 * @since : 2020-01-10 07:03:01
 * @version : v1.0.0
 */
@Mapper
public interface  BrandManagementMapper {

    long insert(BrandManagementRequest brandManagement);

    long delete(Long id);

    long update(BrandManagementRequest brandManagement);

    BrandManagement queryByPrimaryKey(Long id);

    List<BrandManagement> query(BrandManagement brandManagement);

    List<BrandManagementResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("brandManagement") BrandManagementRequest brandManagement);

    long queryPageCount(BrandManagementRequest brandManagement);

    BrandManagementResponse queryInfo(BrandManagementRequest t);

    List<ProductBrandResponse> queryMerchantProductBrand(@Param("brandManagement") BrandManagementRequest brandManagement);


}
